// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_ACCOUNTS_RECEIVABLE_ORDER
// * CreateDate    : 2014-06-05 18:29:46
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:46
// * LastChanger   : 2014-06-05 18:29:46
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinAccountsReceivableOrderTable : TableInfo
    {
		public const string C_TableName = "FIN_ACCOUNTS_RECEIVABLE_ORDER";
		
		public const string C_RECEIVABLE_ORDER_ID = "RECEIVABLE_ORDER_ID";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_INVOICE_CODE = "INVOICE_CODE";
		public const string C_INVOICE_PERSON = "INVOICE_PERSON";
		public const string C_INVOICE_DATE = "INVOICE_DATE";
		public const string C_TOTAL_AMOUNT = "TOTAL_AMOUNT";
		public const string C_INVOICE_AMOUNT = "INVOICE_AMOUNT";
		public const string C_RECEIVED_AMOUNT = "RECEIVED_AMOUNT";
		public const string C_PAID_PERSON = "PAID_PERSON";
		public const string C_PAID_DATE = "PAID_DATE";
		public const string C_STATUS = "STATUS";
		public const string C_CURRENCY = "CURRENCY";
		public const string C_INVOICE_NO = "INVOICE_NO";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_REMARK = "REMARK";
		
		public FinAccountsReceivableOrderTable()
        {
            _tableName = "FIN_ACCOUNTS_RECEIVABLE_ORDER";
        }
		
		protected static FinAccountsReceivableOrderTable _current;
        public static FinAccountsReceivableOrderTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinAccountsReceivableOrderTable();

            _current.Add(C_RECEIVABLE_ORDER_ID, new ColumnInfo(C_RECEIVABLE_ORDER_ID,"ReceivableOrderId", true, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_INVOICE_CODE, new ColumnInfo(C_INVOICE_CODE,"InvoiceCode", false, typeof(string)));
            _current.Add(C_INVOICE_PERSON, new ColumnInfo(C_INVOICE_PERSON,"InvoicePerson", false, typeof(string)));
            _current.Add(C_INVOICE_DATE, new ColumnInfo(C_INVOICE_DATE,"InvoiceDate", false, typeof(DateTime)));
            _current.Add(C_TOTAL_AMOUNT, new ColumnInfo(C_TOTAL_AMOUNT,"TotalAmount", false, typeof(decimal)));
            _current.Add(C_INVOICE_AMOUNT, new ColumnInfo(C_INVOICE_AMOUNT,"InvoiceAmount", false, typeof(decimal)));
            _current.Add(C_RECEIVED_AMOUNT, new ColumnInfo(C_RECEIVED_AMOUNT,"ReceivedAmount", false, typeof(decimal)));
            _current.Add(C_PAID_PERSON, new ColumnInfo(C_PAID_PERSON,"PaidPerson", false, typeof(string)));
            _current.Add(C_PAID_DATE, new ColumnInfo(C_PAID_DATE,"PaidDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_CURRENCY, new ColumnInfo(C_CURRENCY,"Currency", false, typeof(string)));
            _current.Add(C_INVOICE_NO, new ColumnInfo(C_INVOICE_NO,"InvoiceNo", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo RECEIVABLE_ORDER_ID
        {
            get { return this[C_RECEIVABLE_ORDER_ID]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo INVOICE_CODE
        {
            get { return this[C_INVOICE_CODE]; }
        }
		
		public ColumnInfo INVOICE_PERSON
        {
            get { return this[C_INVOICE_PERSON]; }
        }
		
		public ColumnInfo INVOICE_DATE
        {
            get { return this[C_INVOICE_DATE]; }
        }
		
		public ColumnInfo TOTAL_AMOUNT
        {
            get { return this[C_TOTAL_AMOUNT]; }
        }
		
		public ColumnInfo INVOICE_AMOUNT
        {
            get { return this[C_INVOICE_AMOUNT]; }
        }
		
		public ColumnInfo RECEIVED_AMOUNT
        {
            get { return this[C_RECEIVED_AMOUNT]; }
        }
		
		public ColumnInfo PAID_PERSON
        {
            get { return this[C_PAID_PERSON]; }
        }
		
		public ColumnInfo PAID_DATE
        {
            get { return this[C_PAID_DATE]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo CURRENCY
        {
            get { return this[C_CURRENCY]; }
        }
		
		public ColumnInfo INVOICE_NO
        {
            get { return this[C_INVOICE_NO]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

